import {get, post} from '../../util/request/requests'

export default {
  loadHonor (current, size) {
    return post({
      url: '/honor-wall/list',
      params: {
        current,
        size
      }
    })
  },
  deleteHonor (id) {
    return get({
      url: '/honor-wall/delete',
      params: {id}
    })
  },
  updateHonor (honor) {
    return post({
      url: '/honor-wall/update',
      params: honor
    })
  },
  addHonor (honor) {
    return post({
      url: '/honor-wall/add',
      params: honor
    })
  }
}
